<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">

  <div class="wrap J_check_wrap">
    <?php include $this->getViewFile('/common/Nav') ?>




    <!-- 列表 -->
    <div class="mb10"> 共有 ( <b><?php echo $count; ?></b> ) 条记录</div>
    <form name="myform" action="" method="post" class="J_ajaxForm">
      <div class="table_list">
        <table width="100%" cellspacing="0">
          <thead>
            <tr>
              <td width="10%" align="center"><?php echo $model->getAttributeLabel('title'); ?></td>
              <td width="50%" align="center"><?php echo $sort->link('content') ?></td>
              <td align="center"><?php echo $sort->link('username') ?></td>
              <td align="center"><?php echo $sort->link('admin_name') ?></td>
              <td align="center"><?php echo $sort->link('add_time') ?></td>
              <td align="center">操作</td>
            </tr>
          </thead>
          <tbody>

             <?php foreach($data as $rs){ ?>
             <tr>
                <td width="50" align="center"><?php echo $rs->title; ?></td>
                <td align="center"><?php echo $rs->content?></td>
                <td align="center"><?php echo $rs->username?></td>
                <td align="center"><?php echo $rs->admin_name?></td>
                <td align="center"><?php echo date('Y-m-d H:i:s', $rs->add_time);?></td>
                <td align="center">
                  <a class="J_ajax_del" href="<?php echo yii::app()->createUrl('/admin/cheats/delete', array('id' => $rs->id)) ?>">删除</a>
                  <a class="" href="<?php echo yii::app()->createUrl('/admin/cheats/edit', array('id' => $rs->id)) ?>">修改</a>
                </td>           
              </tr>
             <?php } ?>

          </tbody>
        </table>

        <!-- 分页 -->
        <div class="p10">
          <div class="pages"><?php echo $Page;?></div>
        </div>        
      </div>
    </form>
  </div>
  <script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>